
const {ccclass, property} = cc._decorator;

@ccclass
export default class MyBow extends cc.Component {

    @property(cc.Sprite)
    spArrow: cc.Sprite=null;

    // onLoad () {}

    start () {

    }

    // update (dt) {}

    fire(direction:number,power:number){
        this.node.rotation = direction;
        this.spArrow.node.x = -10;
    }
}
